Skip to content

Conversation

bvogelzang
Copy link

Fixes #1360. Porting changes in #1313 back to 7-1-stable. This bug impacts 7.1, 7.2 and 8.0


def sqlserver_version
@sqlserver_version ||= _raw_select("SELECT @@version", @raw_connection).first.first.to_s
@sqlserver_version ||= execute("SELECT @@version", "SCHEMA").rows.first.first.to_s
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK execute("SELECT @@version", "SCHEMA") will just return the number of rows affected as an integer. It won't return rows of data. I think the fix for 7.1 will be different than what is in main.

@bvogelzang
Copy link
Author

Closing in favor of #1363

@bvogelzang bvogelzang closed this Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants